package com.bnzj.cloud.business.core.persistence.repository;

import java.util.List;

import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import com.bnzj.cloud.business.core.persistence.entity.SysRoleUserDept;
import com.bnzj.core.persistence.repository.BaseRepository;

@Repository
public interface SysRoleUserDeptRepository extends BaseRepository<SysRoleUserDept, Long> {

    @Query(value = "select * from bnz_sys_role_user_dept where role_user_id = ?1", nativeQuery = true)
    public List<SysRoleUserDept> findSysRoleUserDeptByUserId(Long roleUserId);
}
